﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OnlineMovieTicket.Services.IServices;
using OnlineMovieTicket.Data.IRepository;
using OnlineMovieTicket.Data.Repository;
using OnlineMovieTicket.Model;

namespace OnlineMovieTicket.Services.Services
{
    public class TopTenMoviesService : ITopTenMoivesService
    {
        
         ITopTenMoviesRepository toptenMovieRepo;

        public TopTenMoviesService()
        {
            toptenMovieRepo = new TopTenMoviesRepository();
        }



         public List<Model.TopTenMoviesDetail> GetTopTenMoviesByRating(DateTime startDate, DateTime endDate)
         {
            
             return toptenMovieRepo.GetTopTenMoviesByRating(startDate, endDate);
         }
         public List<Model.TopTenMoviesDetail> GetTopTenMoviesByTicket(DateTime startDate, DateTime endDate)
         {
             
             return toptenMovieRepo.GetTopTenMoviesByTicket(startDate, endDate);
         }





         public Movies GetMovie(int MovieCode)
         {
             throw new NotImplementedException();
         }
    }
}
